#include <ximera/scripting/lua/scriptingsystem.hpp>
#include <ximera/scripting/lua/virtualmachine.hpp>

namespace ximera { namespace scripting { namespace lua
{
    Language ScriptingSystem::language() const
    {
        return Language::Lua;
    }

    IVirtualMachine* ScriptingSystem::createVirtualMachine()
    {
        return new VirtualMachine();
    }

    IScript* ScriptingSystem::createScript()
    {
        return new Script();
    }

    IScript* ScriptingSystem::loadScript(String const& fileName)
    {
        // todo: load data from file
        return new Script();
    }
}}}